package com.bbcare.nutritious.plat.service;

import java.util.List;
import java.util.Map;

import com.alibaba.fastjson.JSONObject;


/**
 * 
 * @name:         IActivityHuamiService.java
 * @author:       tao
 * @createTime:   2017年7月3日
 * @description:  华米运动服务接口类
 * @modify:
 *
 */
public interface IActivityHuamiService {
	
	//华米授权获取token接口
	Map<String,Object> bindHuamiAccessToken(Map<String,Object> param) throws Exception;
	
	//华米刷新token接口
	JSONObject refreshHuamiAccessToken(Map<String,Object> param) throws Exception;

	//获取用户基本信息
	Map<String,Object> synchProfile(Map<String,Object> param) throws Exception;
	
	//获取步数 到天
	Map<String,Object> synchActivities(Map<String,Object> param) throws Exception;

	//获取心跳频率 --暂时不用
	Map<String,Object> synchHeartrates(Map<String,Object> param) throws Exception;

	//获取睡眠数据  到天
	Map<String,Object> synchSleep(Map<String,Object> param) throws Exception;
	
	//一次性同步多种数据
	Map<String,Object> synchAllData(Map<String,Object> param) throws Exception;
	
	//授权用户列表
	List<Map<String,Object>> getPatientAuthorizationList(Map<String,Object> param) throws Exception;
	
	//用户总数
	int getPatientAuthorizationCount(Map<String, Object> paramMap) throws Exception;
	
	//手环步数上传用户列表
	List<Map<String,Object>> getActivityPatientList(Map<String,Object> param) throws Exception;
		
	//用户总数
	int getActivityPatientCount(Map<String, Object> paramMap) throws Exception;
	
	//手环步数上传用户列表
	List<Map<String,Object>> getSleepPatientList(Map<String,Object> param) throws Exception;
			
	//用户总数
	int getSleepPatientCount(Map<String, Object> paramMap) throws Exception;
	
    Map<String, Object> getHuamiDataListByUserId(Map<String, Object> paramMap) throws Exception; 
    
    Map<String, Object> getHuamiAuthUrl(Map<String, Object> paramMap) throws Exception; 
}
